const CinemaListReducer=(prevState={
    list:[]
},action)=>{
    console.log(action)
    let newState={...prevState}
    switch(action.type){
        case "change-list":
            newState.list=action.list
            console.log(newState)
            return newState
        default:
            return prevState
    }
}
export default CinemaListReducer;